import request from '../../utils/request'

export function initRecStuPer(page) {
  return request({
    url: '/permission/get/stu/' + page,
    method: 'get'
  })
}

export function editRecStuPer(stuRolePermissionVo) {
  return request({
    url: 'permission/edit/stu',
    method: 'post',
    data: stuRolePermissionVo
  })
}

export function getByName(name) {
  return request({
    url: '/permission/getName/stu/' + 1 + '/' + name,
    method: 'get'
  })
}

export function getPermission() {
  return request({
    url: '/permission/get/per',
    method: 'get'
  })
}
